#ifndef CNUTRITION_H
#define CNUTRITION_H

#include <QObject>
#include "cobject.h"
namespace cooking {

class CNutrition : public CObject
{
    Q_OBJECT

    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
    Q_PROPERTY(QString description READ description WRITE setDescription NOTIFY descriptionChanged)
    Q_PROPERTY(int unitTypeId READ unitTypeId WRITE setUnitTypeId NOTIFY unitTypeIdChanged)
public:
    explicit CNutrition(QObject *parent = 0);


    QString name();
    void setName(QString name);

    QString description();
    void setDescription(QString description);

    int unitTypeId();
    void setUnitTypeId(int unitTypeid);

signals:
    void nameChanged();
    void descriptionChanged();
    void unitTypeIdChanged();

public slots:
private:
    QString m_name;
    QString m_description;
    int m_unit_type_id;
};
} // namespace cooking
#endif // CNUTRITION_H
